<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title>盒子阴影</title>
		
		<style>
			.box1{
				width: 100px;
				height: 100px;
				margin: 50px 50px;
				background-color: #ff0;
				box-shadow:10px 10px 15px 5px red ;
				
			}
			
			/*   测试内部的阴影  */
			.box2{
				
				margin-top: 30px;
				width: 100px;
				height: 100px;
				margin: 20px 50px;
				background-color: #ff0;
				box-shadow:10px 10px 15px 5px red inset;
			}
			
			
			/* -------------------------------- */
			.box3{
				width: 200px;
				height: 50px;
				margin: 20px 50px;
				background-color: #f00;
				border-radius: 25px;
			}
			.box3:hover{
				box-shadow:10px 10px 15px 5px gray ;
			}
			
		
		</style>
	</head>
	<body>
		
		<div class="box1"></div>
		<div class="box2"></div>	
		<div class="box3"></div>
		
		
		
	</body>
</html>